<!DOCTYPE html>
<html lang="en">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<title>会员中心</title>
<script src="<%=basePath%>weixin/js/mui.min.js"></script>
<link rel="stylesheet" href="<%=basePath%>weixin/css/mui.min.css" />
<link rel="stylesheet" href="<%=basePath%>weixin/css/base.css" />
<link rel="stylesheet" href="<%=basePath%>weixin/css/style.css" />
</head>
<body class="bg-white">
	<div class="member clearfix container-box">
		<div class="portrait">
			<img src="<%=basePath%>${srm.imgpath}" onerror="this.src='<%=basePath%>weixin/img/p.png'" />
			<p>${srm.nickname}</p>
		</div>
		<div class="member-text">
			<div><span>${srm.count_num}</span> 人</div>
			<div>商家人数</div>
		</div>
		<div class="member-text">
			<div><span>${srm.promotionCount}</span> 人</div>
			<div>分销人数</div>
		</div>
	</div>
	<div class="container-box">
		<div class="row-box">
			<div class="input-group bg-white m-top-20 data-member input-group-arrow">
				<div class="input-group-item">
					<div class="input-group-icon"><i class="member-i member-i-1"></i></div>
					<div class="input-group-text">
						<a href="<%=basePath%>api/wx/user/members/list">团队成员</a>
					</div>
					<c:if test="${srm.count_num>0 && srm.count_num!=1000}">
						<div class="input-group-num">
							<span>${srm.count_num}</span>
						</div>
					</c:if>
				</div>

				<c:if test="${srm.userType=='5' && srm.level >= 3 }">
					<div class="input-group-item">
						<div class="input-group-icon"><i class="member-i member-i-2"></i></div>
						<div class="input-group-text">
							<a href="<%=basePath%>api/wx/user/audit/list">审核成员</a>
						</div>
						<c:if test="${srm.audit_count>0}">
							<div class="input-group-num">
								<span>${srm.audit_count}</span>
							</div>
						</c:if>
					</div>
				</c:if>
				<div class="input-group-item">
					<div class="input-group-icon"><i class="member-i member-i-3"></i></div>
					<div class="input-group-text">
						<a>账户余额</a>
					</div>
					<div class="input-group-num" style="width:150px; text-align:right;">
						<span style="margin-right:.8em;">${srm.rmoney}元</span>
					</div>
				</div>
				<div class="input-group-item">
					<div class="input-group-icon"><i class="member-i member-i-1"></i></div>
					<div class="input-group-text">
						<a>推荐码</a>
					</div>
					<div class="input-group-num" >
						<span style="color:#525358" id="promotionCode" >${srm.promotionCode}</span>
					</div>
				</div>
				<div class="input-group-item">
					<div class="input-group-icon"><i class="member-i member-i-4"></i></div>
					<div class="input-group-text">
						<a href="<%=basePath%>api/wx/my/share">分享</a>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script>
		(function(mui){
			mui.init();
		})(mui);

	</script>
</body>
</html>